import React, { Component } from 'react'

export default class Record extends Component {

  constructor(props) {
    super(props);
    this.state = {
      time: null
    }
  }
  

  transformTimer (ms) {
    return new Date(ms*1000).Format("yyyy-MM-DD")
  }

  render() {
    return (
      <tr>
        <td>{this.props.date}</td>
        <td>{this.props.title}</td>
        <td>{this.props.amount}</td>
      </tr>
    )
  }
}